<?php

namespace App\Http\Requests\Admin\VipController;

use App\Http\Requests\BaseRequest;

class doRule extends BaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name'=>'required',
            'duration'=>'required',
        ];
    }

    public function messages()
    {
        return [
            'name.required' => 'vip名称必填',
            'duration.required' => '有效天数必填',
        ];
    }
}
